package com.encryption.logic;

import com.encryption.model.User;
import com.encryption.service.checkcode.SecuirtyVerifyManageImpl;

public class SendRandomHelper {
	
	private static SecuirtyVerifyManageImpl verify = new SecuirtyVerifyManageImpl();

	public static boolean send(User user){
		verify.sendVerifyCode(user);
		return true;
	}
	
	public static boolean validate(User user, String random){
		return verify.verify(user.getId(), random);
	}
}
